package com.cmc.cloud.cmclink.doc.vo.superwhitelistvo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 有条件接载清单(OOG) Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class SuperWhitelistOogBaseVO {

    @Schema(description = "特种货类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "特种货类型不能为空")
    @Length(max = 20, message = "特种货类型支持最大长度{max}")
    private String specialCargoType;

    @Schema(description = "超级白名单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "超级白名单号不能为空")
    @Length(max = 20, message = "超级白名单号支持最大长度{max}")
    private String praNo;

    @Schema(description = "接货地(多个)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "接货地(多个)不能为空")
    @Length(max = 50, message = "接货地(多个)支持最大长度{max}")
    private String pors;

    @Schema(description = "装货港(多个)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "装货港(多个)不能为空")
    @Length(max = 50, message = "装货港(多个)支持最大长度{max}")
    private String pols;

    @Schema(description = "卸货港(多个)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "卸货港(多个)不能为空")
    @Length(max = 50, message = "卸货港(多个)支持最大长度{max}")
    private String pods;

    @Schema(description = "目的地(多个)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "目的地(多个)不能为空")
    @Length(max = 50, message = "目的地(多个)支持最大长度{max}")
    private String dels;

    @Schema(description = "限长", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "限长不能为空")
    private Integer overallLength;

    @Schema(description = "限宽", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "限宽不能为空")
    private Integer overallWidth;

    @Schema(description = "限高", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "限高不能为空")
    private Integer overallHeight;

    @Schema(description = "文件id", example = "21047")
    private Long fileId;

    @Schema(description = "备注", example = "你说的对")
    @Length(max = 200, message = "备注支持最大长度{max}")
    private String remark;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Schema(description = "操作人")
    private String updater;

}
